home *** CD-ROM | disk | FTP | other *** search
/ Programming a Multiplayer FPS in DirectX / Programming a Multiplayer FPS in DirectX (Companion CD).iso / DirectX / dxsdk_oct2004.exe / dxsdk.exe / Samples / C++ / DirectInput / DIConfig / cyclestr.h < prev    next >
Encoding:
C/C++ Source or Header  |  2004-09-27  |  979 b   |  32 lines

  1. //-----------------------------------------------------------------------------
  2. // File: cyclestr.h
  3. //
  4. // Desc: Implements a circular queue that provides space to hold a string
  5. //       without repeatedly allocating and deallocating memory.  This is
  6. //       only for short-term use such as outputting debug message to
  7. //       ensure that the same buffer is not used at more than one place
  8. //       simultaneously.
  9. //
  10. // Copyright (C) Microsoft Corporation. All Rights Reserved.
  11. //-----------------------------------------------------------------------------
  12.  
  13. #ifndef __CYCLESTR_H__
  14. #define __CYCLESTR_H__
  15.  
  16.  
  17. LPTSTR getcyclestr();
  18. LPCTSTR SAFESTR(LPCWSTR);
  19. LPCTSTR SAFESTR(LPCSTR);
  20. LPCTSTR QSAFESTR(LPCWSTR);
  21. LPCTSTR QSAFESTR(LPCSTR);
  22. LPCTSTR BOOLSTR(BOOL);
  23. LPCTSTR RECTSTR(RECT &);
  24. LPCTSTR RECTDIMSTR(RECT &);
  25. LPCTSTR POINTSTR(POINT &);
  26. LPCTSTR GUIDSTR(const GUID &);
  27. LPCTSTR SUPERSTR(LPCWSTR);
  28. LPCTSTR SUPERSTR(LPCSTR);
  29.  
  30.  
  31. #endif //__CYCLESTR_H__
  32.